#include <stdio.h>

//功能选择界面
short QHDX_Menu(int ID)
{
	short Selection;
	system("clear");
	printf("\n**********主界面**********\n");
        printf("\n*操作提示：\n");
   	if(ID == 2)
	{
		printf("\n*录入学生信息请输入1\n");
        	printf("\n*删除学生信息请输入2\n");
        	printf("\n*修改学生信息请输入3\n");
        }
	printf("\n*查询学生信息请输入4\n");
       	printf("\n*修改登录密码请输入5\n");
	printf("\n*退出系统请输入0\n");

	printf("\n请选择您操作对应的数字:>");
	if(1 != scanf("%hd", &Selection) || ((ID == 1 || ID == 3) & (Selection == 1 || Selection == 2 || Selection == 3)))
	{
		Selection =-1;	
	}	
	return Selection;
}


